home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
DJGPP
/
BCCGRX12.ZIP
/
contrib
/
bcc2grx
/
src
/
bccgrx14.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-05-03
|
1KB
|
33 lines
/*
* BCC2GRX - Interfacing Borland based graphics programs to LIBGRX
* Copyright (C) 1993 Hartmut Schirmer
*
* see bccgrx.c for details
*/
#include "bccgrx00.h"
/* ----------------------------------------------------------------- */
char *grapherrormsg(int errorcode)
{
switch (errorcode) {
case grOk : return "No error";
case grNoInitGraph : return "graphics not initialized";
case grNotDetected : return "Graphics hardware not detected";
case grFileNotFound : return "Device driver file not found";
case grInvalidDriver : return "Invalid device driver file";
case grNoLoadMem : return "Not enough memory to load driver";
case grNoScanMem : return "Out of memory in scan fill";
case grNoFloodMem : return "Out of memory in flood fill";
case grFontNotFound : return "Font file not found";
case grNoFontMem : return "Not enough memory to load font";
case grInvalidMode : return "Invalid graphics mode";
case grError : return "Graphics error";
case grIOerror : return "Graphics I/O error";
case grInvalidFont : return "Invalid font file";
case grInvalidFontNum : return "Invalid font number";
case grInvalidVersion : return "Invalid File Version Number";
}
return "Unknown graphics error";
}